package demo2;

public class Test {
    public static void drawMap(IShape iShape){
        iShape.draw();
    }
    public static void main(String[] args) {
        IShape iShape1=new Rect();
        IShape iShape2=new Cycle();

        drawMap(iShape1);
        drawMap(iShape2);
    }
}
